#include <stdio.h>
#include <string.h>

void MyStrcat(char *dest,char *src)
{
    while(*dest != '\0')
    {dest++;}
    while( *src != '\0')
    {
        // *dest = *src;
        // dest++;
        // src++;
        *dest++ = *src++;
    }
    *dest = '\0'; 
}



int main()
{
    char a[] = "hello ";
    char b[] = "world!";
    char *p = a;
    MyStrcat(a,b);
    printf("%s",p);
}